// pages/service-detail/components/publisher-action/publisher-action.js
import serviceAction from '../../../../enum/service-action'
import serviceStatus from '../../../../enum/service-status'
import { getDataSet } from '../../../../utils/utils'
import behavior from '../behavior'
Component({
	/**
	 * 组件的属性列表
	 */
	behaviors: [behavior],
	/**
	 * 组件的初始数据
	 */
	data: {
		serviceStatusEnum: serviceStatus,
		serviceActionEnum: serviceAction,
	},

	/**
	 * 组件的方法列表
	 */
	methods: {
		handleUpdateStatus(event) {
			const action = getDataSet(event, 'action')
			this.triggerEvent('update', { action })
		},
		//修改服务
		handleEditService(event) {
			this.triggerEvent('edit')
		},
	},
})
